/*
	Written By Sanjay Giri and Pradipna Nepal
	www.pradsprojects.com
	
	Copyright (C) 2012 Prads Projects
	Please read COPYING.txt included along with this source code for more detail.
	If not included, see http://www.gnu.org/licenses/
*/

#include "libToken.h"


Token::Token(){
}

Token::Token(string v, TokenType t, TokenDescription d) : value(v), type(t), description(d) {

}


Token & Token::operator = (const Token & t){
	 if (this == &t) return *this;
		 
	 value = t.getValue();
	 type = t.getToken();
	 description = t.getDescription();

	 return *this;
}


string Token::getValue() const{
	return value;
}

TokenType Token::getToken() const{
	return type;
}

TokenDescription Token::getDescription() const{
	return description;
}

void Token::setValue(string v){
	value = v;
}

void Token::setType(const TokenType t){
	type = t;
}

void Token::setDescription(TokenDescription d) {
	description = d;
}